package com.geely.club;

import android.app.Application;
import android.os.Environment;

import com.geely.club.util.Device;
import com.geely.club.util.FileUtil;
import com.geely.club.util.openapiclient.Requester;

/**
 * Created by mengyangyang on 2015-09-29.
 */
public class MainApplication extends Application {
    private static MainApplication context;

    @Override
    public void onCreate() {
        super.onCreate();
        Requester.init(this);
        FileUtil.init(this);
        Device.init(this);
        context = this;
        setFile();
    }

    private void setFile() {
        if (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {

        } else {

        }
    }

    public static MainApplication getInstance() {
        return context;
    }



}

